import uuid

from django.db import models


class Job(models.Model):
    id = models.UUIDField(max_length=36, default=uuid.uuid4(), primary_key=True)
    name = models.CharField(max_length=32)
    describe = models.CharField(max_length=255)
    require = models.CharField(max_length=255)
    welfare = models.CharField(max_length=255)
    mode = models.CharField(max_length=32)

    def __str__(self):
        return self.name

    class Meta:
        db_table = 'job'
